package com.jnu.hc.jnuhcusercms.controller;

import com.jnu.hc.jnuhcusercms.domain.Orders;
import com.jnu.hc.jnuhcusercms.dto.ResponseObject;
import com.jnu.hc.jnuhcusercms.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CheckOrderController {
    @Autowired
    OrdersService ordersService;
    @RequestMapping("/checkorder")
    public ResponseObject checkorder(@RequestBody Orders orders){
        return ordersService.countOrder(orders);
    }
}
